package com.sj.tensquare.web.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;

/**
 * @author sj
 * @date 2020/12/7 - 8:47
 */
@Configuration
public class MyMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("articles-list");
        registry.addViewController("/articles-list.html").setViewName("articles-list");
        registry.addViewController("/contact.html").setViewName("contact");
        registry.addViewController("/faq.html").setViewName("faq");
        registry.addViewController("/home-categories-description.html").setViewName("home-categories-description");
        registry.addViewController("/index-2.html").setViewName("index-2");
        registry.addViewController("/register.html").setViewName("register");
    }
}
